package com.zysoft.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.Resource;
import org.springframework.core.io.ResourceLoader;
import org.springframework.stereotype.Component;

@Component
public class ResSvr {

    @Autowired
    private ResourceLoader resourceLoader;


    @Value("classpath:/static/demo.js")
    private Resource uploadDir;

    public Resource getUploadDir() {
        return uploadDir;
    }
}
